package main.java.indi.zyj.sword;

import main.java.indi.zyj.hot100.base.ListNode;

public class TrainningPlan3 {

    public ListNode trainningPlan(ListNode head) {

        ListNode top = new ListNode(-1);
        ListNode p = head;

        while (p != null) {
            head = head.next;
            p.next = top.next;
            top.next = p;
            p = head;
        }

        return top.next;

    }

}
